<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../bootstrap-table/bootstrap-table.css"/>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../../toastr/toastr.min.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
        <div class="col-*-12">

            <div id="toolbar" class="form-inline">
                <div class="form-inline" style="margin-left: 100px">
                    <label class="sr-only" for="s_cardSearch">员工编号</label>
                    <div class="input-group mb-2 mr-sm-2">
                        <input type="text" class="form-control" id="s_cardSearch" placeholder="员工编号">
                    </div>
                    <label class="sr-only" for="s_nameSearch" >姓名</label>
                    <input type="text" class="form-control mb-2 mr-sm-2" id="s_nameSearch" style="margin-left: 20px" placeholder="姓名">
                        <label for="s_sexSearch" style="margin-left: 20px">性别</label>
                        <select id="s_sexSearch"  class="form-control" style="margin-bottom: 5px;margin-left: 5px">
                            <option  value="1">男</option>
                            <option  value="2">女</option>
                            <option selected ></option>
                        </select>
            </div>
                <div class="form-inline" style="margin-left: 100px;margin-top: 20px">
                    <label class="sr-only" for="s_intimeSearch">入职时间</label>
                    <input type="text" class="form-control mb-2 mr-sm-2" id="s_intimeSearch" placeholder="入职时间">
                    <label class="sr-only" for="s_outtimeSearch">离职时间</label>
                    <input type="text" class="form-control mb-2 mr-sm-2" id="s_outtimeSearch" placeholder="离职时间" style="margin-left: 40px;">
                    <button type="button" class="btn btn-outline-dark" id="searchDriverInfoBtn" style="margin-left: 50px; margin-bottom: 7px">检索</button>
                </div>
                <div class="btn btn-outline-primary" data-toggle="modal" data-target="#addModal" id="addDriverBtn" style="margin-left: 60px;margin-bottom: -13px">添加记录</div>
                <div class="btn btn-outline-success" data-toggle="modal" data-target="#updateModal" id="updateDriverBtn" style="margin-left: 10px;margin-bottom: -13px">修改记录</div>

            </div>
            <table id="driverTab" class="table table-hover"></table>

            <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myDialogHeaderLable"></h4>
                        </div>
                        <div class="modal-body">
                            <div id="insertcarinfo" role="form">
                                <!--员工编号-->
                                <div class="form-group">
                                    <input type="hidden" id="s_id">
                                    <input type="text" class="form-control" id="s_card" placeholder="员工编号">
                                </div>
                                <!--姓名-->
                                <div class="form-group">
                                    <input type="text" class="form-control" id="s_name" placeholder="姓名">
                                </div>
                                <div class="form-row">
                                    <div class="form-group col-md-9">
                                        <label for="s_sex">性别</label>
                                        <select id="s_sex"  class="form-control">
                                            <option selected value="1">男</option>
                                            <option selected value="2">女</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <input type="text" class="form-control" id="s_num" placeholder="身份证号">
                                </div>
                                <div class="form-group">
                                    <input type="text" class="form-control" id="s_address" placeholder="家庭住址">
                                </div>
                                <div class="form-row">
                                    <div class="form-group col-md-9">
                                        <label for="s_state">性别</label>
                                        <select id="s_state"  class="form-control">
                                            <option selected value="0">离职</option>
                                            <option selected value="1">在职</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class='col-sm-6'>
                                        <div class="form-group">
                                            <label>入职时间：</label>
                                            <!--指定 date标记-->
                                            <div class='input-group date' >
                                                <input type='text' class="form-control" id="s_intime" />
                                                <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class='col-sm-6'>
                                        <div class="form-group">
                                            <label>离职时间：</label>
                                            <!--指定 date标记-->
                                            <div class='input-group date' >
                                                <input type='text' class="form-control" id="s_outtime"/>
                                                <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="addRecord"></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../../jquery/jquery-3.4.1.min.js"></script>
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<script src="../../bootstrap-table/bootstrap-table.js"></script>
<script src="../../bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../../js/moment-with-locales.js"></script>
<script src="../../bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script src="../../toastr/toastr.min.js"></script>
<script src="../../js/driverinfo.js"></script>
</body>
</html>